home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume4 / rolodex / part1 next >
Encoding:
Internet Message Format  |  1986-11-30  |  21.8 KB

  1. From: seismo!think!massar (JP Massar)
  2. Subject: rolodex database program -- part 1 of 3
  3. Newsgroups: mod.sources
  4. Approved: jpn@panda.UUCP
  5.  
  6. Mod.sources:  Volume 4, Issue 27
  7. Submitted by: ihnp4!think!massar (JP Massar)
  8.  
  9. #! /bin/sh
  10. # This is a shell archive, meaning:
  11. # 1. Remove everything above the #! /bin/sh line.
  12. # 2. Save the resulting text in a file.
  13. # 3. Execute the file with /bin/sh (not csh) to create the files:
  14. #    README
  15. #    rolo.1
  16. #    Makefile
  17. #    helplib
  18. # This archive created: Thu Mar 13 18:29:50 1986
  19. export PATH; PATH=/bin:$PATH
  20. echo shar: extracting "'README'" '(1693 characters)'
  21. if test -f 'README'
  22. then
  23.     echo shar: will not over-write existing file "'README'"
  24. else
  25. cat << \SHAR_EOF > 'README'
  26. This is an online rolodex program that has been used here at Thinking
  27. Machines Corporation for quite a while.  Lot's of people find it very
  28. useful and I have never had any problems with it.
  29.  
  30. This code has only been tested on BSD42 on a VAX.  It definitely will
  31. not work under System V, although I have included a "sys5.h" to start
  32. things going.
  33.  
  34. Instructions on how to install:
  35.  
  36. 1.  This program should have come in 3 parts.  Choose an empty directory,
  37.     and unshar them all.  Check the Makefile, you may want to select
  38.     either TERMCAP or TERMINFO.
  39.  
  40. 2.  Pick a library subdirectory where the help and menu files will go.
  41.     (Say /usr/local/lib/rolo).  Edit the Makefile and change the definition
  42.     of ROLOLIB to that path.  (Do not leave it as is!).
  43.  
  44. 3.  Create the directory and move all the files in helplib to this directory.
  45.  
  46. 4.  Pick the appropriate place in your manual hierarchy where the man
  47.     page should go.  Adjust MS and MAN in the Makefile accordingly.
  48.  
  49. 5.  Pick the appropriate place where the executable should live.  Adjust
  50.     BIN in the Makefile accordingly.
  51.  
  52. 6.  Edit the manual page (ctools.1) if you wish to change the FILES
  53.     section to point to the directories you selected.
  54.  
  55. 7.  Type 'make man' and read the manual page.
  56.  
  57. 8.  Type 'make'.  
  58.  
  59. 9.  Type 'rolo' and try out the rolodex program!
  60.  
  61. 10.  Type 'make install'.
  62.  
  63. 11. Type 'make clean'.
  64.  
  65.  
  66. The files ctools.c and ctools.h in the toolsdir directory are useful in
  67. their own right, as they contain many little useful string manipulation
  68. routines and other goodies.  You might wish to install it as <ctools.h>
  69. and -lctools as is done here.
  70.  
  71. Problems, bugs and hacks to:
  72.  
  73. massar@think.com
  74. ihnp4!think!massar
  75. SHAR_EOF
  76. if test 1693 -ne "`wc -c < 'README'`"
  77. then
  78.     echo shar: error transmitting "'README'" '(should have been 1693 characters)'
  79. fi
  80. fi
  81. echo shar: extracting "'rolo.1'" '(1935 characters)'
  82. if test -f 'rolo.1'
  83. then
  84.     echo shar: will not over-write existing file "'rolo.1'"
  85. else
  86. cat << \SHAR_EOF > 'rolo.1'
  87. .TH ROLO 1 "6 December 1984"
  88. .UC 4
  89. .SH NAME
  90. rolo \- use an online rolodex, containing information about people.
  91. .SH SYNOPSIS
  92. .B rolo
  93. [ name1 name2 ... \-u otheruser \-s \-l ]
  94. .SH DESCRIPTION
  95. By default
  96. .I rolo
  97. reads in a rolodex data file from the user's home directory, prints
  98. out a menu of choices, and lets the user scan, update, delete and add to
  99. his personal database of people.  If no rolodex database exists one
  100. is created.
  101. .I rolo
  102. checks to see that the rolodex database is not already in use.
  103. .PP
  104. The command line options are:
  105. .TP
  106. .B \-u otheruser
  107. Uses the rolodex database in the 'otheruser' home directory.  This may
  108. not be possible if the directory or the database is read or write protected.
  109. .TP
  110. .B \-s
  111. Prints people's names, work phone numbers and home phone numbers in a nice
  112. format to standard output.
  113. .TP
  114. .B \-l
  115. Normally the rolodex database is locked when being used.  This option
  116. unlocks the database as soon as it is read in.  The \-s option implies this.
  117. .PP
  118. Invoking 
  119. .I rolo
  120. followed by a list of names causes 
  121. .I
  122. rolo
  123. to search the database for all people whose names or company
  124. affiliations contain any of the name arguments as substrings.  All the
  125. information about each person is printed to standard output, the program
  126. pausing after each record is printed.  Using this feature causes the
  127. database to become unlocked, since this is a read-only mode.
  128. .PP
  129. Extensive help is available on-line.  Typing '?' or 'help' will generally
  130. print a help file for you.
  131. .SH FILES
  132. /usr/src/local/cmd/rolo     for the source.
  133. .PP
  134. /usr/local/lib/rolo     for help files.
  135. .PP
  136. /usr/local/rolo         the executable image.
  137. .PP
  138. .PP
  139. .SH AUTHOR
  140. Peter Webb wrote the first rolodex program.
  141. .PP
  142. JP Massar revised and then complete rewrote this older version.
  143. Net address: massar@think.com, ihnp4!think!massar.
  144. .SH BUGS
  145. There is no way to keep certain entries private.
  146. .PP
  147. You can't get a short summary of only a subset of people.
  148.  
  149.  
  150.  
  151. SHAR_EOF
  152. if test 1935 -ne "`wc -c < 'rolo.1'`"
  153. then
  154.     echo shar: error transmitting "'rolo.1'" '(should have been 1935 characters)'
  155. fi
  156. fi
  157. echo shar: extracting "'Makefile'" '(1178 characters)'
  158. if test -f 'Makefile'
  159. then
  160.     echo shar: will not over-write existing file "'Makefile'"
  161. else
  162. cat << \SHAR_EOF > 'Makefile'
  163. # Makefile for rolo
  164.  
  165. # Configure for your type of terminal capability database.  
  166. #  if you have termcap,  set TERMSTUFF= -DTERMCAP,  and LIBS= -ltermcap
  167. #  if you have terminfo, set TERMSTUFF= -DTERMINFO, and LIBS= -lterminfo
  168. #  if you dont have either, leave them both blank (only "clear_screen" is used)
  169. TERMSTUFF=
  170. LIBS=
  171. #
  172. CC = cc
  173. ROLOLIB = \"./helplib\"
  174. TOOLDIR = ./toolsdir
  175. CFLAGS = -DBSD42 -DROLOLIB=$(ROLOLIB) $(TERMSTUFF) -I$(TOOLDIR) -O
  176. DBGFLAG = 
  177. SOURCES = clear.c io.c menuaux.c operations.c options.c \
  178.     rlist.c rolo.c search.c update.c
  179. OBJECTS = clear.o io.o menuaux.o operations.o options.o \
  180.     rlist.o rolo.o search.o update.o
  181. TOOLOBJ = $(TOOLDIR)/mem.o $(TOOLDIR)/args.o $(TOOLDIR)/ctools.o \
  182.     $(TOOLDIR)/menu.o
  183. BIN = /usr/local
  184. MS = 1
  185. MAN = /usr/man/man$(MS)
  186.  
  187. rolo: $(OBJECTS)
  188.     cd $(TOOLDIR) ; make tools ; cd ..
  189.     $(CC) -o rolo $(DBGFLAG) $(CFLAGS) $(OBJECTS) $(TOOLOBJ) $(LIBS)
  190. install: rolo
  191.     rm -f $(BIN)/rolo
  192.     mv rolo $(BIN)/rolo
  193. man: 
  194.     rm -f $(MAN)/rolo.1
  195.     cp rolo.1 $(MAN)/rolo.$(MS)
  196.     man rolo
  197. clean:
  198.     rm -f $(OBJECTS) rolo *~ foo $(TOOLDIR)/*.o
  199.  
  200. shar:
  201.     cshar README rolo.1 Makefile helplib > roloshar1
  202.     cshar *.[ch] > roloshar2
  203.     cshar toolsdir > roloshar3
  204. SHAR_EOF
  205. if test 1178 -ne "`wc -c < 'Makefile'`"
  206. then
  207.     echo shar: error transmitting "'Makefile'" '(should have been 1178 characters)'
  208. fi
  209. fi
  210. if test ! -d 'helplib'
  211. then
  212.     echo shar: creating directory "'helplib'"
  213.     mkdir 'helplib'
  214. fi
  215. echo shar: extracting "'helplib/addhelp'" '(1408 characters)'
  216. if test -f 'helplib/addhelp'
  217. then
  218.     echo shar: will not over-write existing file "'helplib/addhelp'"
  219. else
  220. cat << \SHAR_EOF > 'helplib/addhelp'
  221. You are adding a new entry to your rolodex database.  If you want to
  222. get back to the main menu type the character '\' followed by RETURN.
  223.  
  224. Each entry is composed of 7 fixed items, which are Name, Work Phone,
  225. Home Phone, Company, Work Address, Home Address, and Remarks.  You are
  226. being prompted to give a value to each item, one after the other.  Simply
  227. type in some characters and end with a RETURN.  If you realize you've made
  228. a mistake after hitting RETURN, type '^' RETURN, which will prompt you
  229. again for the item you just entered.  If you have no information for a 
  230. particular item, simply type RETURN and you will be prompted for the next
  231. item.   Finally, the program will prompt you with 'Other fields? '.   At
  232. this point type 'no' RETURN unless you know what you are doing (see below).
  233.  
  234.      (Advanced feature) If you have entered all the information about a person
  235. you have, and the program is still prompting you for fields, type '!' RETURN
  236. and it will assume that all the remaining fields are to be left empty.
  237.      (Advanced feature) You can add items in addition to those listed above.
  238. To do so answer 'yes' to the 'Other fields? ' prompt and then ask for help.
  239.      (Advanced feature) The character ';' is used as a line separator.  If
  240. you typed in '245 First St.,; Cambridge, MA 02139', when this information was
  241. displayed the street address and city/state would print out on different lines.
  242. SHAR_EOF
  243. if test 1408 -ne "`wc -c < 'helplib/addhelp'`"
  244. then
  245.     echo shar: error transmitting "'helplib/addhelp'" '(should have been 1408 characters)'
  246. fi
  247. fi
  248. echo shar: extracting "'helplib/addinfo'" '(66 characters)'
  249. if test -f 'helplib/addinfo'
  250. then
  251.     echo shar: will not over-write existing file "'helplib/addinfo'"
  252. else
  253. cat << \SHAR_EOF > 'helplib/addinfo'
  254. Add a rolodex entry:  (? for help, ^ to back up, \ to abort add)
  255.  
  256. SHAR_EOF
  257. if test 66 -ne "`wc -c < 'helplib/addinfo'`"
  258. then
  259.     echo shar: error transmitting "'helplib/addinfo'" '(should have been 66 characters)'
  260. fi
  261. fi
  262. echo shar: extracting "'helplib/entrymenu'" '(222 characters)'
  263. if test -f 'helplib/entrymenu'
  264. then
  265.     echo shar: will not over-write existing file "'helplib/entrymenu'"
  266. else
  267. cat << \SHAR_EOF > 'helplib/entrymenu'
  268.  
  269.    RETURN  : continue the scan.             %   : scan rolodex from this point.
  270.    +       : update or add to the entry.    <   : display previous entry.
  271.    -       : delete the entire entry.       \   : abort the scan.
  272.  
  273. SHAR_EOF
  274. if test 222 -ne "`wc -c < 'helplib/entrymenu'`"
  275. then
  276.     echo shar: error transmitting "'helplib/entrymenu'" '(should have been 222 characters)'
  277. fi
  278. fi
  279. echo shar: extracting "'helplib/escanhelp'" '(846 characters)'
  280. if test -f 'helplib/escanhelp'
  281. then
  282.     echo shar: will not over-write existing file "'helplib/escanhelp'"
  283. else
  284. cat << \SHAR_EOF > 'helplib/escanhelp'
  285. The rolodex program is displaying each entry in your rolodex database
  286. (the entries are ordered alphabetically) one by one.  After an entry
  287. has been displayed, you have the option to
  288.  
  289.   -- have the next entry displayed (type RETURN)
  290.   -- have the previous entry displayed by (type '<' RETURN)
  291.   -- delete the entry from your rolodex (type '-' RETURN)
  292.   -- change the information contained in this entry (type '+' RETURN)
  293.   -- abort this sequential display mode and go back to the main menu 
  294.      (type '\' RETURN)
  295.  
  296. If you elect to delete the entry, the message 'Entry deleted' will be
  297. displayed briefly, and then the next entry will be displayed.
  298.  
  299. If you elect to update the entry, after you have completed the update
  300. operation the message 'Displaying next entry in scan list' will be
  301. displayed briefly, and then the next entry will be displayed.
  302. SHAR_EOF
  303. if test 846 -ne "`wc -c < 'helplib/escanhelp'`"
  304. then
  305.     echo shar: error transmitting "'helplib/escanhelp'" '(should have been 846 characters)'
  306. fi
  307. fi
  308. echo shar: extracting "'helplib/esearchhelp'" '(1071 characters)'
  309. if test -f 'helplib/esearchhelp'
  310. then
  311.     echo shar: will not over-write existing file "'helplib/esearchhelp'"
  312. else
  313. cat << \SHAR_EOF > 'helplib/esearchhelp'
  314. The rolodex program is displaying each entry that matches the search string
  315. you provided, one by one.  After an entry has been displayed, you have
  316. the option to
  317.  
  318.   -- have the next entry displayed (type RETURN)
  319.   -- have the previous entry displayed by (type '<' RETURN)
  320.   -- delete the entry from your rolodex (type '-' RETURN)
  321.   -- change the information contained in this entry (type '+' RETURN)
  322.   -- abort this sequential display mode and go back to the main menu 
  323.      (type '\' RETURN)
  324.  
  325.      If you elect to delete the entry, the message 'Entry deleted' will
  326. be displayed briefly, and then the next entry will be displayed.
  327.      If you elect to update the entry, after you have completed the
  328. update operation the message 'Displaying next entry in scan list' will
  329. be displayed briefly, and then the next entry will be displayed.
  330.      If only one entry matched your search string, or the entry being
  331. displayed is the last entry which matches, if you try to continue the
  332. program will inform you that there are no more matching entries and
  333. return you to the main menu.
  334. SHAR_EOF
  335. if test 1071 -ne "`wc -c < 'helplib/esearchhelp'`"
  336. then
  337.     echo shar: error transmitting "'helplib/esearchhelp'" '(should have been 1071 characters)'
  338. fi
  339. fi
  340. echo shar: extracting "'helplib/fieldsearchhelp'" '(1034 characters)'
  341. if test -f 'helplib/fieldsearchhelp'
  342. then
  343.     echo shar: will not over-write existing file "'helplib/fieldsearchhelp'"
  344. else
  345. cat << \SHAR_EOF > 'helplib/fieldsearchhelp'
  346. You have asked to search the rolodex database by some other item than name.
  347. For instance, if you wanted to find people who worked in Cambridge, you could
  348. select the 'Work Address' item and use as a search string 'Cambridge'.  If
  349. this is not what you want to do type '\' RETURN to get back to the main menu.
  350.  
  351. To select an item to search by, type the number of the item.  It will
  352. then prompt you for a search string.  Type in what you want to search
  353. for followed by RETURN.  The program will then show you the entries that
  354. it has found that match your search criteria.
  355.  
  356. (Advanced feature) You can search by items which you have defined, as well as
  357. the standard items.  The last choice is not a standard item but an option to
  358. allow you to type in the name of your own user-defined item name.  For
  359. instance, if your rolodex database contained 'Net Address' items, you could
  360. search for Net Addresses containing 'ihnp4' by selecting the last choice
  361. and typing in 'Net Address' RETURN, followed by 'ihnp4' RETURN at the
  362. appropriate prompts.
  363. SHAR_EOF
  364. if test 1034 -ne "`wc -c < 'helplib/fieldsearchhelp'`"
  365. then
  366.     echo shar: error transmitting "'helplib/fieldsearchhelp'" '(should have been 1034 characters)'
  367. fi
  368. fi
  369. echo shar: extracting "'helplib/lockinfo'" '(734 characters)'
  370. if test -f 'helplib/lockinfo'
  371. then
  372.     echo shar: will not over-write existing file "'helplib/lockinfo'"
  373. else
  374. cat << \SHAR_EOF > 'helplib/lockinfo'
  375. Your rolodex is already in use!
  376.  
  377. Either someone else is using and possibly modifying your rolodex, or else
  378. you forgot to exit a previous use of your rolodex, or possibly the system
  379. crashed while you were using your rolodex the last time.
  380.  
  381. You can find out who is using your rolodex by typing
  382.  
  383. ls -l ~/.rolodexdata.lock
  384.  
  385. The third column of the output will be a user's name.  If the name is
  386. not yours, then you should find out what that person is doing with your
  387. rolodex and ask him/her to let you know when they are finished.
  388.  
  389. If the name is your own, then it is probably safe to remove the lock file.
  390. (It is possible that someone else is logged in as you, however...)
  391. Type
  392.  
  393. rm ~/.rolodexdata.lock
  394.  
  395. and then you can use your rolodex.
  396. SHAR_EOF
  397. if test 734 -ne "`wc -c < 'helplib/lockinfo'`"
  398. then
  399.     echo shar: error transmitting "'helplib/lockinfo'" '(should have been 734 characters)'
  400. fi
  401. fi
  402. echo shar: extracting "'helplib/mainmenu'" '(395 characters)'
  403. if test -f 'helplib/mainmenu'
  404. then
  405.     echo shar: will not over-write existing file "'helplib/mainmenu'"
  406. else
  407. cat << \SHAR_EOF > 'helplib/mainmenu'
  408.         TOP LEVEL MENU
  409.  
  410.   +  :  add a new entry
  411.   %  :  scan the rolodex entry by entry
  412.   $  :  search by some item other than 'Name'
  413.   *  :  save any changes made so far
  414.   !  :  pretty print the rolodex database to a disk file
  415.   \  :  exit (any changes you've made will be saved)
  416.  
  417. To search for an entry by name, just type in the name.
  418. To update or delete an entry, first find it by searching.
  419. SHAR_EOF
  420. if test 395 -ne "`wc -c < 'helplib/mainmenu'`"
  421. then
  422.     echo shar: error transmitting "'helplib/mainmenu'" '(should have been 395 characters)'
  423. fi
  424. fi
  425. echo shar: extracting "'helplib/moptionhelp'" '(1390 characters)'
  426. if test -f 'helplib/moptionhelp'
  427. then
  428.     echo shar: will not over-write existing file "'helplib/moptionhelp'"
  429. else
  430. cat << \SHAR_EOF > 'helplib/moptionhelp'
  431.      This is the TMC Rolodex, an online way to store and retrieve information
  432. about people you know, and other important pieces of data.
  433.      Data is stored in units called entries..  There will generally be an entry
  434. for each person in your rolodex.  Inside entries are items.  Items store such
  435. things as a person's name, his phone number(s), and address(es).  You can
  436. change items or add new ones.  You can create or delete entire entries also.
  437.      At any time you can type the character '\' followed by RETURN to abort
  438. what you are currently doing.  Most of the time '?' or 'help' followed by
  439. RETURN will get you more information on what you are expected to type in next.
  440.      If for some reason you wish to terminate the rolodex program without
  441. saving any changes you have made, hold down the CTRL key and type 'c'.
  442.  
  443.      When you are searching for information, typing in any part of the
  444. information that uniquely identifies it is good enough.  For instance, if you
  445. were looking for John Finklesnort, typing 'John' is probably not a good idea
  446. because you probably have a few names that contain 'John', but typing 'Finkle'
  447. or 'snort' will probably uniquely identify the entry you want.  The search
  448. program is completely case-insensitive.
  449.      The rolodex search is completely case-insensitive (e.g., searching for
  450. 'Finkle' is the same as searching for 'finkle' is the same as 'fInKLe').
  451. SHAR_EOF
  452. if test 1390 -ne "`wc -c < 'helplib/moptionhelp'`"
  453. then
  454.     echo shar: error transmitting "'helplib/moptionhelp'" '(should have been 1390 characters)'
  455. fi
  456. fi
  457. echo shar: extracting "'helplib/moptionshelp'" '(747 characters)'
  458. if test -f 'helplib/moptionshelp'
  459. then
  460.     echo shar: will not over-write existing file "'helplib/moptionshelp'"
  461. else
  462. cat << \SHAR_EOF > 'helplib/moptionshelp'
  463. This is the TMC Rolodex, an online way to store and retrieve information
  464. about people you know, and other important pieces of data.
  465.  
  466. At any time you can type the character '\' followed by RETURN to abort
  467. what you are currently doing.  Most of the time '?' or 'help' followed by
  468. RETURN will get you more information on what you are expected to type in
  469. next.
  470.  
  471. At the Top Level Menu, which you are currently at, you can type the following:
  472.  
  473. '+'     to begin entering information about a new person.
  474. '%'     to begin scanning your rolodex, entry by entry.
  475. '!'     to print out your rolodex in a nice format.
  476. '*'     to save any changes you have made to your rolodex.
  477. '\'     to exit the rolodex program.
  478.  
  479. If you wish to find an already existing entry
  480. SHAR_EOF
  481. if test 747 -ne "`wc -c < 'helplib/moptionshelp'`"
  482. then
  483.     echo shar: error transmitting "'helplib/moptionshelp'" '(should have been 747 characters)'
  484. fi
  485. fi
  486. echo shar: extracting "'helplib/pickentrymenu'" '(130 characters)'
  487. if test -f 'helplib/pickentrymenu'
  488. then
  489.     echo shar: will not over-write existing file "'helplib/pickentrymenu'"
  490. else
  491. cat << \SHAR_EOF > 'helplib/pickentrymenu'
  492. Type number of the entry you wish to view,
  493. or type RETURN to view each entry one by one,
  494. or type '\' to go back to the main menu.
  495. SHAR_EOF
  496. if test 130 -ne "`wc -c < 'helplib/pickentrymenu'`"
  497. then
  498.     echo shar: error transmitting "'helplib/pickentrymenu'" '(should have been 130 characters)'
  499. fi
  500. fi
  501. echo shar: extracting "'helplib/poptionmenu'" '(150 characters)'
  502. if test -f 'helplib/poptionmenu'
  503. then
  504.     echo shar: will not over-write existing file "'helplib/poptionmenu'"
  505. else
  506. cat << \SHAR_EOF > 'helplib/poptionmenu'
  507. OPTIONS:
  508.    RETURN  -- continue looking for same name.
  509.    'n'     -- look for the next name you asked about.
  510.    '\'     -- abort the rolodex program.
  511. SHAR_EOF
  512. if test 150 -ne "`wc -c < 'helplib/poptionmenu'`"
  513. then
  514.     echo shar: error transmitting "'helplib/poptionmenu'" '(should have been 150 characters)'
  515. fi
  516. fi
  517. echo shar: extracting "'helplib/poptionshelp'" '(648 characters)'
  518. if test -f 'helplib/poptionshelp'
  519. then
  520.     echo shar: will not over-write existing file "'helplib/poptionshelp'"
  521. else
  522. cat << \SHAR_EOF > 'helplib/poptionshelp'
  523. At this point you can type the following:
  524.  
  525. the RETURN key.
  526. the 'n' key followed by RETURN.
  527. the '\' (backslash) key followed by RETURN.
  528.  
  529. If you used the rolodex program by typing something like 'rolo john'
  530. then typing RETURN will find for you the next person in your rolodex
  531. who has the letters 'john' as part of their name.
  532.  
  533. If you used the rolodex program by typing something like 'rolo john mary'
  534. then typing 'n' after the program had displayed one of the people whose
  535. name contained 'john' would stop the program from looking for any more
  536. 'john's and start looking for 'mary'.
  537.  
  538. If you just wish to exit the program type the backslash character.
  539. SHAR_EOF
  540. if test 648 -ne "`wc -c < 'helplib/poptionshelp'`"
  541. then
  542.     echo shar: error transmitting "'helplib/poptionshelp'" '(should have been 648 characters)'
  543. fi
  544. fi
  545. echo shar: extracting "'helplib/updatehelp'" '(1253 characters)'
  546. if test -f 'helplib/updatehelp'
  547. then
  548.     echo shar: will not over-write existing file "'helplib/updatehelp'"
  549. else
  550. cat << \SHAR_EOF > 'helplib/updatehelp'
  551. You have asked to change some information contained in the entry that was
  552. being displayed before you typed '+'.  If this is not what you want type '\'
  553. RETURN to get back to the main menu.
  554.  
  555. Currently, the program is displaying the name of each item in the entry and
  556. its contents (some items may have no contents).  Each item is numbered.
  557. Simply type the number of the item whose contents you wish to change.  The
  558. program will then display the old contents of the item and ask you to type in
  559. some text which will become the new contents.  Once you have done this for
  560. each item you wish to change, type RETURN when it again asks for you an item
  561. number.  It will then print out the revised entry one more time, and ask you
  562. to confirm all your changes.  You can abort all your changes for this entry at
  563. any time by typing '\' RETURN.
  564.  
  565. You can also add new items to this entry.  The last numbered choice is not an
  566. item name but an option to allow you to do this.  Type this number (now 8) and
  567. you will be prompted for the name and contents of a new field.  For instance
  568. you might want to add an item called 'Net Address' with a value 'cca!alex'.
  569. When prompted you would type 'Net Address: cca!alex' RETURN.  You stop adding
  570. new items by typing just a RETURN.
  571. SHAR_EOF
  572. if test 1253 -ne "`wc -c < 'helplib/updatehelp'`"
  573. then
  574.     echo shar: error transmitting "'helplib/updatehelp'" '(should have been 1253 characters)'
  575. fi
  576. fi
  577. echo shar: extracting "'helplib/updatemenu'" '(125 characters)'
  578. if test -f 'helplib/updatemenu'
  579. then
  580.     echo shar: will not over-write existing file "'helplib/updatemenu'"
  581. else
  582. cat << \SHAR_EOF > 'helplib/updatemenu'
  583. Type number of the item you wish to change,
  584. or type RETURN to finalize your changes,
  585. or type '\' to cancel all your changes.
  586. SHAR_EOF
  587. if test 125 -ne "`wc -c < 'helplib/updatemenu'`"
  588. then
  589.     echo shar: error transmitting "'helplib/updatemenu'" '(should have been 125 characters)'
  590. fi
  591. fi
  592. echo shar: done with directory "'helplib'"
  593. exit 0
  594. #    End of shell archive
  595.